#!/usr/bin/python2.7
#coding=utf8
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker

class SqlAlchemy(object):
        
    def dbsession(self,Config):
        self.config = Config
        engine = create_engine(self.config.ORACLECONN, echo=True)
        Session = sessionmaker(bind=engine)
        session = Session()
        return session